﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entity
{
    public class EntityBase
    {
        public EntityBase()
        {
            this.ID = Guid.NewGuid();
            this.CreateTime = DateTime.Now;
        }
        [Key]
        [Required]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        [Required]
        public DateTime CreateTime { get; set; }
        public DateTime LockTime{ get; set; }
        public DateTime DeleteTime{ get; set; }
    }
}
